package test;

import java.io.File;

public class DeleteHtm {

	public static final String path = "";
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		deleteHtm(path);

	}
	
	public static void deleteHtm(String path) {
		File dir = new File(path);
		File[] files = null;
		if (dir.isDirectory()) {
			files = dir.listFiles();
		}
		
		for (File f : files) {
			if (f.isDirectory()) {
				deleteHtm(f.getAbsolutePath());
			}else {
				if (f.getName().equals("index.htm")) {
					f.delete();
					System.out.println(f.getAbsolutePath());
				}
			}
		}
	}

}
